package com.ssm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ssm.dao.EmploymentMapper;
import com.ssm.pojo.Employment;
import com.ssm.service.EmploymentService;

@Service("EmploymentService")
public class EmploymentServiceImpl implements EmploymentService{
	
	  @Resource
	  private EmploymentMapper employmentDao;

	@Override
	public List<Employment> selbycid(int id) {
		
		return employmentDao.selectBycId(id);
	}

	@Override
	public int updatestate(Employment em) {
		// TODO Auto-generated method stub
		return employmentDao.updateByPrimaryKeySelective(em);
	}

}
